
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGMaterialGroup.h>
#include <OpenSG/OSGMaterialGroupBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_MaterialGroup_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_MaterialGroup()
{
    scope* osg_MaterialGroupBase_scope = new scope(
    class_< osg::MaterialGroupBase, bases< osg::Group > , boost::noncopyable >("MaterialGroupBase", no_init)
//        .def_readonly("MaterialFieldMask", &osg::MaterialGroupBase::MaterialFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::MaterialGroupBase::MTInfluenceMask)
        .def("getClassType", &osg::MaterialGroupBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::MaterialGroupBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::MaterialGroupBase::*)() )&osg::MaterialGroupBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::MaterialGroupBase::*)() const)&osg::MaterialGroupBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::MaterialGroupBase::getContainerSize)
        //.def("getMaterial", (osg::MaterialPtr& (osg::MaterialGroupBase::*)() )&osg::MaterialGroupBase::getMaterial, return_value_policy< copy_const_reference >())
        .def("getMaterial", (const osg::MaterialPtr& (osg::MaterialGroupBase::*)() const)&osg::MaterialGroupBase::getMaterial, return_value_policy< copy_const_reference >())
        .def("setMaterial", &osg::MaterialGroupBase::setMaterial)
        .def("getBinSize", &osg::MaterialGroupBase::getBinSize)
        .def("copyToBin", &osg::MaterialGroupBase::copyToBin)
        .def("copyFromBin", &osg::MaterialGroupBase::copyFromBin)
        .def("create", &osg::MaterialGroupBase::create)
        .def("createEmpty", &osg::MaterialGroupBase::createEmpty)
        .def("shallowCopy", &osg::MaterialGroupBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::MaterialGroupBase::NextFieldId;
    scope().attr("MaterialFieldId") = (int)osg::MaterialGroupBase::MaterialFieldId;

    delete osg_MaterialGroupBase_scope;

    class_< osg::MaterialGroup, bases< osg::MaterialGroupBase > , boost::noncopyable, osg::MaterialGroupRefPtr >("MaterialGroup", no_init)
        .def("changed", &osg::MaterialGroup::changed)
        .def("setMaterial", &osg::MaterialGroup::setMaterial)
        .def("dump", &osg::MaterialGroup::dump, osg_MaterialGroup_dump_overloads_0_2())
    ;


    register_ptr_to_python<osg::MaterialGroupPtr>();
    implicitly_convertible<osg::MaterialGroupRefPtr, osg::MaterialGroupPtr>();
    implicitly_convertible<osg::MaterialGroupPtr, osg::GroupPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::MaterialGroupPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::MaterialGroupPtr>);
}

